#ifndef ACTIONPATROL_H_
#define ACTIONPATROL_H_

#include <irrlicht.h>

#include "Action.h"
#include "ActionMove.h"
#include "Exception.h"

class ActionPatrol: virtual public Action
{
	protected:
	irr::core::vector3df current_point_to_reach__;
	float timeToPatrol__ ;
	float maxTimeToPatrol__ ;
	Entity * executer__ ;
	bool reachable__ ;
	std::string condition__ ;
	bool cancel__;

	public:
	ActionPatrol(float maxTime);
	ActionPatrol(float maxTime, std::string condition);
	virtual ~ActionPatrol();

	virtual bool execute(Entity* executer);
	
	virtual bool checkConditions() ;
};

#endif

